package net.web.belerofont.action.support;

import java.util.Map;

import net.web.belerofont.action.Action;
import net.web.belerofont.action.URIMap;

public abstract class ActionSupport implements Action {

	private Map<String, URIMap> forwards;
	
	protected Map<String, URIMap> getForwards() {
		return forwards;
	}
	
	protected URIMap getForward(String name) {
		return forwards.get(name);
	}
	
	public void init(Map<String, URIMap> uriMap) {
		this.forwards = uriMap;
	}
	
	public String toString() {
		return this.getClass().getCanonicalName();
	}

}
